package com.itcast.java.coupon.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * 商品spu积分设置实体类
 *
 * @author xiaobai
 * @date 2021-06-27 19:38:46
 */
@Data
@TableName("sms_spu_bounds")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "SmsSpuBoundsEntity对象", description = "商品spu积分设置")
public class SmsSpuBoundsEntity implements Serializable{

private static final long serialVersionUID=1L;

        @ApiModelProperty(value = "id")
                @TableId(value = "id", type = IdType.AUTO)
                private Long id;

    @TableField("spu_id")
        private Long spuId;

        @ApiModelProperty(value = "成长积分")
    @TableField("grow_bounds")
        private BigDecimal growBounds;

        @ApiModelProperty(value = "购物积分")
    @TableField("buy_bounds")
        private BigDecimal buyBounds;

        @ApiModelProperty(value = "优惠生效情况[1111（四个状态位，从右到左）;0 - 无优惠，成长积分是否赠送;1 - 无优惠，购物积分是否赠送;2 - 有优惠，成长积分是否赠送;3 - 有优惠，购物积分是否赠送【状态位0：不赠送，1：赠送】]")
    @TableField("work")
        private Boolean work;

        }